package _5prototype_DeepCopy._2deepclone;

public class Test {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        DeepProtoType p = new DeepProtoType();
        p.name = "宋江";
        p.deepCloneableTarget = new DeepCloneableTarget("大牛", "小牛");
        Class<? extends DeepProtoType> aClass = p.getClass();
        Object name = aClass.getField("name").get(p);
        System.out.println(name);
    }
}
